<?php
/**
  * Mar 5, 2008
  *
  * Coded by: Ropu
  *
  */

//$hacker = new Hacker();

$id = "2222222";
$network = "RopuTestNetwork";

include 'login.php';

echo "<xmp>";
$hacker->getApps();
//print_r($os);
//print_r($hacker);

//$hacker->setNickname('Ropu Ny');
//$hacker->setExtraInfo('testinng');
//$hacker->setHackathon(2);
//$hacker->save();
////$hacker = new Hacker();
//$appV = new AppVersion();
//$appV->setUrl('http://chau.com');
//$appV->setVersion('v0.5');
//$app = new App();
//$app->setName('Versioned App2');
//$app->setTitle('title3');
//$app->setDescription('description4');
//$app->setThumb('thumb5');
////$app->save();
//$app->newVersion($appV);
//$app = new App(6);
//print_r($app);
//$hacker->addApp($app);

//print_r($app->getLastVersion());
//$hackathons = HackathonDAO::getList();
//print_r($hackathons);

$hackers = HackathonDAO::getByHackathon(1);

echo "</xmp>";
//include 'templates/temp_myapps.php';
//include 'templates/temp_appedit.php';
//include 'templates/temp_hackathon_list.php';
//include 'templates/temp_hackathon.php';



//print_r($hacker->getApps());
//try {
//  $hacker->addFavoriteApp($app);
//} catch (Exception $e) {
//  print_r($e);
//}
//echo $hacker->removeFavoriteApp($app);
//echo $hacker->rateApp($app, 5);
//echo $hacker->rateApp(new App(4), 5);


